<?php

class Account extends CI_Controller {
	
	function Account() {
		parent::__construct ();
		$username = $this->session->userdata('username');
		$level = $this->session->userdata('level');
		if($username !='' && $level == 1 ){
			
		}
		else
		{
			redirect(base_url().'index.php/user');
		}
		$this->load->model ( 'be/customer_model', 'model' );
		$this->load->library ( 'form_validation' );
		$this->load->helper ( array ('form', 'url' ) );
	}
	
	function index() {
		$data ['page_title'] = 'Đăng nhập';
		$data ['main_content'] = 'be/account/login';
		$this->load->view ( 'be/includes/template', $data );
	}

	function add() {
		
	}
	
	function get() {
	
	}
	
	function search() {
	
	}
	
	function update() {
	
	}
	
	function delete() {
	
	}
}